package mbean;

import util.FacesUtil;

public abstract class AbstractMBean {

	public abstract boolean isDirty();
	
	public void setaTela(boolean valida, String beanTelaAtual){
		NavigationMBean nmb = new NavigationMBean();
		nmb.setValidaSalvar(valida);
		nmb.setBeanTelaAtual(beanTelaAtual);
		FacesUtil.setSessionMapValue("navigation", nmb);				
	}
}
